﻿#ifndef TESTBOXUPDATERDIALOG_H
#define TESTBOXUPDATERDIALOG_H

#include <QCloseEvent>
#include "components/FWidgets/Base/FDialog.h"
#include "TBUTask.h"

namespace Ui {
class TestBoxUpdaterDialog;
}

class TestBoxUpdaterDialog : public FDialog
{
    Q_OBJECT

public:
    explicit TestBoxUpdaterDialog(QWidget *parent = nullptr);
    ~TestBoxUpdaterDialog();


protected:
    void showToast();
    bool initHexFile(const QString& hexPath);

private slots:
    void closeEvent(QCloseEvent* e) override;
    void reject() override;

    void on_btnCancel_clicked();

    void on_btnBrowse_clicked();

    void on_btnRun_clicked();

private:
    Ui::TestBoxUpdaterDialog *ui;
    TBUTask* m_task;
};

#endif // TESTBOXUPDATERDIALOG_H
